package com.woniu.smart.mapper;

import com.woniu.smart.dto.ContractInformationDTO;
import com.woniu.smart.dto.EnterpricesDTO;
import com.woniu.smart.entity.Enterprise;
import com.woniu.smart.vo.EChartsEnterpriseVO;
import com.woniu.smart.vo.EnterpriseVo;
import com.woniu.smart.vo.SelByNameEnterpriseVo;

import java.util.List;

/**
* @author wangheng
* @description 针对表【enterprise】的数据库操作Mapper
* @createDate 2022-10-19 19:23:47
* @Entity com.woniu.smart.entity.Enterprise
*/
public interface EnterpriseMapper {
    SelByNameEnterpriseVo selByNameEnterprise(EnterpricesDTO enterpricesDTO);

    int deleteByPrimaryKey(Long id);

    int insert(Enterprise record);

    int deleteAllByList(List list);

    int insertSelective(Enterprise record);

    int insertSelectiveByEnterpricesDTO(EnterpricesDTO record);

    int insertSelectiveByContract(ContractInformationDTO record);

    Enterprise selectByPrimaryKey(Long id);


    List<Enterprise> selectEnterpriseByEnterpriseVo(EnterpriseVo enterpriseVo);

    List<Enterprise> selectEnterpriseAll();

    List<EnterpriseVo> selectEnterpriseAllS(EnterpricesDTO enterpricesDTO);

    /**
     * @Description 查询企业员工以及企业
     * @Parm a
     * @Retrn a
     * @Author WangMr
     * @Date Create by 2022/11/3 16:18
     */
    List<EnterpriseVo> selectEnterpriseAndStaffsAll(EnterpricesDTO enterpricesDTO);


    int updateByPrimaryKeySelective(Enterprise record);

    int updateByPrimaryKey(Enterprise record);

    /**
     * @Description 公司分组查自己员工数据
     * @Parm a
     * @Retrn a
     * @Author WangMr
     * @Date Create by 2022/10/31 19:43
     */
    List<EChartsEnterpriseVO> selectGroupEnterprise();
//    公司分组
    List<EChartsEnterpriseVO> selectGroupEnterprise2();

}
